{layout name="layout" /}
<!-- Main content -->
<div class="row">
    <div class="col-xs-12">
        <div class="nav-tabs-custom">
            <div class="box">
                <div class="box-header">
                    <h3 class="box-title">充值记录</h3>
                </div>
                <!-- /.box-header -->
                <form class="form-horizontal " method="get" action="{:url('home/user/rechlist')}">
                    <div class="form-group">
                        <label class="col-sm-2 control-label no-padding-right" for="form-field-1"> 搜索： </label>
                        <div class="col-sm-10">
                            <input type="text" class="form-group-new  col-xs-12 col-sm-4" placeholder="输入用户名称" name="user_name" value="{$user_name|default=''}">
                        </div>
                    </div>
                    <div class="form-actions">
                        <div class="col-md-offset-3 col-md-9">
                            <button class="btn btn-primary" type="submit">
                                <i class="fa fa-search bigger-110"></i> 搜索
                            </button>
                            <button class="btn" type="reset">
                                <i class="fa fa-undo bigger-110"></i> <a href="{:url('home/user/rechlist')}" style="color:black;">重置</a>
                            </button>
                        </div>
                    </div>
                </form>
                <div class="box-body">
                    <div class="table-responsive">
                        <table id="staff" class="table table-bordered table-striped">
                            <thead>
                                <tr>
                                    <th>充值用户</th>
                                    <th>订单编号</th>
                                    <th>充值金额</th>
                                    <th>下单时间</th>
                                    <th>支付时间</th>
                                    <th>状态</th>
                                    <th>充值类型</th>
                                </tr>
                            </thead>
                            <tbody>
                                {volist name='rechlist' id='rech'}
                                <tr>
                                    <td> {$rech.user_name}</td>
                                    <td> {$rech.rech_order}</td>
                                    <td> {$rech.account}</td>
                                    <td> {$rech.rech_time}</td>
                                    <td> {$rech.pay_time}</td>
                                    <td>
                                        {switch name="$rech.pay_status"} {case value="0"}待支付{/case} {case value="1"}充值成功{/case} {case value="2"}交易关闭{/case} {default /}交易异常 {/switch}
                                    </td>
                                    <td>
                                        {switch name="$rech.pay_name"} {case value="artificial"}人工充值{/case} {/switch}
                                    </td>
                                </tr>
                                {/volist}
                            </tbody>
                            <!-- tbody是必须的 -->
                        </table>
                        {$rechlist->render()}
                    </div>
                </div>
                <!-- /.box-body -->
            </div>
            <!-- /.box -->
        </div>
        <!-- /.col -->
    </div>
</div>
<!-- /.row -->
</section>
<!-- /.content -->
{include file="public/base" /} {include file="public/edit" /} {include file="public/footer" /}
</body>

</html>
